from django.contrib import admin
from django.conf.urls import url
from web import views
from django.contrib.staticfiles import views as static_view

urlpatterns = [
    # 按照如下格式写url寻访路径
    url(r'login/',views.getLogin,name='get login html'),
    url(r'signup/',views.getSignUp,name='get signup html'),
    url(r'userLogin/',views.userLogin,name='userLogin'),
    url(r'userSignUp/',views.userSignUp,name='userSignUp'),
    url(r'login2main/',views.login2main,name='login2main'),
    url(r'hotpot/',views.getHotpot,name='get hotpot html'),
    url(r'trackrecall/',views.getTrackrecall,name='get trackrecall html'),
    url(r'calcQuery/',views.calcQuery,name='calcQuery'),
    url(r'taxiidQuery/',views.taxiidQuery,name='taxiidQuery'),
    url(r'pitchQuery/',views.pitchQuery,name='pitchQuery'),
    url(r'drivingfeature/',views.getDrivingfeature,name='get drivingfeature html'),
    url(r'driverprofile/',views.getDriverprofile,name='get driverprofile html'),
    #url(r'driverquery/',views.driverquery,name='driverquery'),
    url(r'network/',views.network,name='显示网络初始界面'),
    url(r'cityplan/',views.getCityPlan,name ='get city plan html'),
    url(r'kmeans/',views.CityPlanKmeans.as_view(),name='返回k均值聚类中心点'),
    url(r'dbscan/',views.DBScan.as_view(),name='返回聚类结果'),
    url(r'trackpoint/',views.getTrackPoint,name='得到所有的轨迹点'),
    url(r'ShowClustering/',views.ShowClustering,name='分模块显示上下车点'),
    url(r'getedgedata/',views.GetEdgedata,name='获取边权重'),
    url(r'route/',views.getroute,name='get route html'),
    url(r'poiQuery/',views.poiQuery,name='特定POI查询'),
    url(r'traffic/',views.traffic,name='拥堵路段分析'),
    url(r'statusquery/',views.statusQuery,name='拥堵路段查询'),
    url(r'^static/(?P<path>.*)$', static_view.serve),
]
